home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 November: Tool Chest / Dev.CD Nov 98 TC.toast / Sample Code / Display Manager / Compiler & Runtime Files / • New universal header files • / AIncludes / Video.a < prev   
Encoding:
Text File  |  1997-06-24  |  36.0 KB  |  739 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Video.a
  3. ;
  4. ;    Contains:    Video Driver Interfaces.
  5. ;
  6. ;     Version:    Technology:    System 7.5
  7. ;                 Package:    Universal Interfaces in “Display Manager Development Kit” (post ETO #18)
  8. ;                Date:        12/6/96 
  9. ;
  10. ;     Copyright:    © 1984-1995 by Apple Computer, Inc.
  11. ;                 All rights reserved.
  12. ;     Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13. ;                 stack.  Include the file and version information (from above)
  14. ;                 in the problem description and send to:
  15. ;                     Internet:    apple.bugs@applelink.apple.com
  16. ;                     AppleLink:    APPLE.BUGS
  17. ;
  18. ;
  19.  
  20.     IF &TYPE('__VIDEO__') = 'UNDEFINED' THEN
  21. __VIDEO__ SET 1
  22.  
  23.  
  24.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  25.     include 'Quickdraw.a'
  26.     ENDIF
  27. ;        include 'Types.a'                                            ;
  28. ;            include 'ConditionalMacros.a'                            ;
  29. ;        include 'MixedMode.a'                                        ;
  30. ;        include 'QuickdrawText.a'                                    ;
  31.  
  32. mBaseOffset                        EQU        1                    ;Id of mBaseOffset.
  33. mRowBytes                        EQU        2                    ;Video sResource parameter Id's 
  34. mBounds                            EQU        3                    ;Video sResource parameter Id's 
  35. mVersion                        EQU        4                    ;Video sResource parameter Id's 
  36. mHRes                            EQU        5                    ;Video sResource parameter Id's 
  37. mVRes                            EQU        6                    ;Video sResource parameter Id's 
  38. mPixelType                        EQU        7                    ;Video sResource parameter Id's 
  39. mPixelSize                        EQU        8                    ;Video sResource parameter Id's 
  40. mCmpCount                        EQU        9                    ;Video sResource parameter Id's 
  41. mCmpSize                        EQU        10                    ;Video sResource parameter Id's 
  42. mPlaneBytes                        EQU        11                    ;Video sResource parameter Id's 
  43. mVertRefRate                    EQU        14                    ;Video sResource parameter Id's 
  44. mVidParams                        EQU        1                    ;Video parameter block id.
  45. mTable                            EQU        2                    ;Offset to the table.
  46. mPageCnt                        EQU        3                    ;Number of pages
  47. mDevType                        EQU        4                    ;Device Type
  48. oneBitMode                        EQU        128                    ;Id of OneBitMode Parameter list.
  49. twoBitMode                        EQU        129                    ;Id of TwoBitMode Parameter list.
  50. fourBitMode                        EQU        130                    ;Id of FourBitMode Parameter list.
  51. eightBitMode                    EQU        131                    ;Id of EightBitMode Parameter list.
  52.  
  53. sixteenBitMode                    EQU        132                    ;Id of SixteenBitMode Parameter list.
  54. thirtyTwoBitMode                EQU        133                    ;Id of ThirtyTwoBitMode Parameter list.
  55. firstVidMode                    EQU        128                    ;The new, better way to do the above. 
  56. secondVidMode                    EQU        129                    ; QuickDraw only supports six video 
  57. thirdVidMode                    EQU        130                    ; at this time.      
  58. fourthVidMode                    EQU        131
  59. fifthVidMode                    EQU        132
  60. sixthVidMode                    EQU        133
  61. spGammaDir                        EQU        64
  62. spVidNamesDir                    EQU        65
  63.  
  64. ; csTimingFormat values in VDTimingInfo 
  65. ; look in the declaration rom for timing info 
  66. kDeclROMtables                    EQU        'decl'
  67.  
  68. kDDCBlockSize                    EQU        128
  69. ;  ddcBlockType constants
  70.  
  71. kDDCBlockTypeEDID                EQU        0                    ; EDID block type. 
  72. ;  ddcFlags constants
  73.  
  74. kDDCForceReadBit                EQU        0                    ; Force a new read of the EDID. 
  75. kDDCForceReadMask                EQU        $01                    ; Mask for kddcForceReadBit. 
  76.  
  77. ; Timing mode constants for Display Manager MultiMode support
  78. ;    Corresponding    .h equates are in Video.h
  79. ;                    .a equates are in Video.a
  80. ;                    .r equates are in DepVideoEqu.r
  81. ;    
  82. ;    The first enum is the old names (for compatibility).
  83. ;    The second enum is the new names.
  84. ;
  85. timingApple12                    EQU        130                    ;  512x384 (60 Hz) Rubik timing.
  86. timingApple12x                    EQU        135                    ;  560x384 (60 Hz) Rubik-560 timing.
  87. timingApple13                    EQU        140                    ;  640x480 (67 Hz) HR timing.
  88. timingApple13x                    EQU        145                    ;  640x400 (67 Hz) HR-400 timing.
  89. timingAppleVGA                    EQU        150                    ;  640x480  (60 Hz) VGA timing.
  90. timingApple15                    EQU        160                    ;  640x870 (75 Hz) FPD timing.
  91. timingApple15x                    EQU        165                    ;  640x818 (75 Hz) FPD-818 timing.
  92. timingApple16                    EQU        170                    ;  832x624 (75 Hz) GoldFish timing.
  93. timingAppleSVGA                    EQU        180                    ;  800x600  (56 Hz) SVGA timing.
  94. timingApple1Ka                    EQU        190                    ; 1024x768 (60 Hz) VESA 1K-60Hz timing.
  95. timingApple1Kb                    EQU        200                    ; 1024x768 (70 Hz) VESA 1K-70Hz timing.
  96. timingApple19                    EQU        210                    ; 1024x768  (75 Hz) Apple 19" RGB.
  97. timingApple21                    EQU        220                    ; 1152x870  (75 Hz) Apple 21" RGB.
  98.  
  99. timingInvalid                    EQU        0                    ;    Unknown timing… force user to confirm. 
  100. timingInvalid_SM_T24            EQU        8                    ;    Work around bug in SM Thunder24 card.
  101. timingApple_FixedRateLCD        EQU        42                    ;    Lump all fixed-rate LCDs into one category.
  102. timingApple_512x384_60hz        EQU        130                    ;  512x384  (60 Hz) Rubik timing.
  103. timingApple_560x384_60hz        EQU        135                    ;  560x384  (60 Hz) Rubik-560 timing.
  104. timingApple_640x480_67hz        EQU        140                    ;  640x480  (67 Hz) HR timing.
  105. timingApple_640x400_67hz        EQU        145                    ;  640x400  (67 Hz) HR-400 timing.
  106. timingVESA_640x480_60hz            EQU        150                    ;  640x480  (60 Hz) VGA timing.
  107. timingVESA_640x480_72hz            EQU        152                    ;  640x480  (72 Hz) VGA timing. 
  108. timingVESA_640x480_75hz            EQU        154                    ;  640x480  (75 Hz) VGA timing. 
  109. timingVESA_640x480_85hz            EQU        158                    ;  640x480  (85 Hz) VGA timing. 
  110. timingGTF_640x480_120hz            EQU        159                    ;  640x480  (120 Hz) VESA Generalized Timing Formula 
  111. timingApple_640x870_75hz        EQU        160                    ;  640x870  (75 Hz) FPD timing.
  112. timingApple_640x818_75hz        EQU        165                    ;  640x818  (75 Hz) FPD-818 timing.
  113. timingApple_832x624_75hz        EQU        170                    ;  832x624  (75 Hz) GoldFish timing.
  114. timingVESA_800x600_56hz            EQU        180                    ;  800x600  (56 Hz) SVGA timing.
  115. timingVESA_800x600_60hz            EQU        182                    ;  800x600  (60 Hz) SVGA timing.
  116. timingVESA_800x600_72hz            EQU        184                    ;  800x600  (72 Hz) SVGA timing.
  117. timingVESA_800x600_75hz            EQU        186                    ;  800x600  (75 Hz) SVGA timing.
  118. timingVESA_800x600_85hz            EQU        188                    ;  800x600  (85 Hz) SVGA timing. 
  119. timingVESA_1024x768_60hz        EQU        190                    ; 1024x768  (60 Hz) VESA 1K-60Hz timing.
  120. timingVESA_1024x768_70hz        EQU        200                    ; 1024x768  (70 Hz) VESA 1K-70Hz timing.
  121. timingVESA_1024x768_75hz        EQU        204                    ; 1024x768  (75 Hz) VESA 1K-70Hz timing (very similar to timingApple_1024x768_75hz).
  122. timingVESA_1024x768_85hz        EQU        208                    ; 1024x768  (85 Hz) VESA timing. 
  123. timingApple_1024x768_75hz        EQU        210                    ; 1024x768  (75 Hz) Apple 19" RGB.
  124. timingApple_1152x870_75hz        EQU        220                    ; 1152x870  (75 Hz) Apple 21" RGB.
  125. timingAppleNTSC_ST                EQU        230                    ;  512x384  (60 Hz, interlaced, non-convolved).
  126. timingAppleNTSC_FF                EQU        232                    ;  640x480  (60 Hz, interlaced, non-convolved).
  127. timingAppleNTSC_STconv            EQU        234                    ;  512x384  (60 Hz, interlaced, convolved).
  128. timingAppleNTSC_FFconv            EQU        236                    ;  640x480  (60 Hz, interlaced, convolved).
  129. timingApplePAL_ST                EQU        238                    ;  640x480  (50 Hz, interlaced, non-convolved).
  130. timingApplePAL_FF                EQU        240                    ;  768x576  (50 Hz, interlaced, non-convolved).
  131. timingApplePAL_STconv            EQU        242                    ;  640x480  (50 Hz, interlaced, convolved).
  132. timingApplePAL_FFconv            EQU        244                    ;  768x576  (50 Hz, interlaced, convolved).
  133. timingVESA_1280x960_75hz        EQU        250                    ; 1280x960  (75 Hz)
  134. timingVESA_1280x960_60hz        EQU        252                    ; 1280x960  (60 Hz) 
  135. timingVESA_1280x960_85hz        EQU        254                    ; 1280x960  (85 Hz) 
  136. timingVESA_1280x1024_60hz        EQU        260                    ; 1280x1024 (60 Hz)
  137. timingVESA_1280x1024_75hz        EQU        262                    ; 1280x1024 (75 Hz)
  138. timingVESA_1280x1024_85hz        EQU        268                    ; 1280x1024 (85 Hz) 
  139. timingVESA_1600x1200_60hz        EQU        280                    ; 1600x1200 (60 Hz) VESA proposed timing.
  140. timingVESA_1600x1200_65hz        EQU        282                    ; 1600x1200 (65 Hz) VESA proposed timing.
  141. timingVESA_1600x1200_70hz        EQU        284                    ; 1600x1200 (70 Hz) VESA proposed timing.
  142. timingVESA_1600x1200_75hz        EQU        286                    ; 1600x1200 (75 Hz) VESA proposed timing.
  143. timingVESA_1600x1200_80hz        EQU        288                    ; 1600x1200 (80 Hz) VESA proposed timing (pixel clock is 216 Mhz dot clock).
  144. timingSMPTE240M_60hz            EQU        400                    ; 60Hz V, 33.75KHz H, interlaced timing, 16:9 aspect, typical resolution of 1920x1035.
  145. timingFilmRate_48hz                EQU        410                    ; 48Hz V, 25.20KHz H, non-interlaced timing, typical resolution of 640x480.
  146.  
  147. ; csConnectFlags values in VDDisplayConnectInfo 
  148. kAllModesValid                    EQU        0                    ; All modes not trimmed by primary init are good close enough to try 
  149. kAllModesSafe                    EQU        1                    ; All modes not trimmed by primary init are know to be safe 
  150. kReportsTagging                    EQU        2                    ; Can detect tagged displays (to identify smart monitors) 
  151. kHasDirectConnection            EQU        3                    ; True implies that driver can talk directly to device (e.g. serial data link via sense lines) 
  152. kIsMonoDev                        EQU        4                    ; Says whether there’s an RGB (0) or Monochrome (1) connection. 
  153. kUncertainConnection            EQU        5                    ; There may not be a display (no sense lines?). 
  154. kTaggingInfoNonStandard            EQU        6                    ; Set when csConnectTaggedType/csConnectTaggedData are non-standard (i.e., not the Apple CRT sense codes). 
  155. kReportsDDCConnection            EQU        7                    ; Card can do ddc (set kHasDirectConnect && kHasDDCConnect if you actually found a ddc display). 
  156. kHasDDCConnection                EQU        8                    ; Card has ddc connect now. 
  157. kConnectionInactive                EQU        9                    ; Set when the connection is NOT currently active (generally used in a multiconnection environment). 
  158. kDependentConnection            EQU        10                    ; Set when some ascpect of THIS connection depends on another (will generally be set in a kModeSimulscan environment). 
  159. kBuiltInConnection                EQU        11                    ; Set when connection is KNOWN to be built-in (this is not the same as kHasDirectConnection). 
  160.  
  161. ; csDisplayType values in VDDisplayConnectInfo 
  162. kUnknownConnect                    EQU        1                    ; Not sure how we’ll use this, but seems like a good idea. 
  163. kPanelConnect                    EQU        2                    ; For use with fixed-in-place LCD panels. 
  164. kPanelTFTConnect                EQU        2                    ; Alias for kPanelConnect 
  165. kFixedModeCRTConnect            EQU        3                    ;  For use with fixed-mode (i.e., very limited range) displays. 
  166. kMultiModeCRT1Connect            EQU        4                    ; 320x200 maybe, 12" maybe, 13" (default), 16" certain, 19" maybe, 21" maybe 
  167. kMultiModeCRT2Connect            EQU        5                    ; 320x200 maybe, 12" maybe, 13" certain, 16" (default), 19" certain, 21" maybe 
  168. kMultiModeCRT3Connect            EQU        6                    ; 320x200 maybe, 12" maybe, 13" certain, 16" certain, 19" default, 21" certain 
  169. kMultiModeCRT4Connect            EQU        7                    ; Expansion to large multi mode (not yet used) 
  170. kModelessConnect                EQU        8                    ; Expansion to modeless model (not yet used) 
  171. kFullPageConnect                EQU        9                    ; 640x818 (to get 8bpp in 512K case) and 640x870 (these two only) 
  172. kVGAConnect                        EQU        10                    ; 640x480 VGA default -- question everything else 
  173. kNTSCConnect                    EQU        11                    ; NTSC ST (default), FF, STconv, FFconv 
  174. kPALConnect                        EQU        12                    ; PAL ST (default), FF, STconv, FFconv 
  175. kHRConnect                        EQU        13                    ; Straight-6 connect -- 640x480 and 640x400 (to get 8bpp in 256K case) (these two only) 
  176. kPanelFSTNConnect                EQU        14                    ; For use with fixed-in-place LCD FSTN (aka “Supertwist”) panels 
  177. kMonoTwoPageConnect                EQU        15                    ; 1152x870 Apple color two-page display 
  178. kColorTwoPageConnect            EQU        16                    ; 1152x870 Apple B&W two-page display 
  179. kColor16Connect                    EQU        17                    ; 832x624 Apple B&W two-page display 
  180. kColor19Connect                    EQU        18                    ; 1024x768 Apple B&W two-page display 
  181. kGenericCRT                        EQU        19                    ; Indicates nothing except that connection is CRT in nature. 
  182. kGenericLCD                        EQU        20                    ; Indicates nothing except that connection is LCD in nature. 
  183. kDDCConnect                        EQU        21                    ; DDC connection, always set kHasDDCConnection 
  184.  
  185. ; csTimingFlags values in VDTimingInfoRec 
  186. kModeValid                        EQU        0                    ; Says that this mode should NOT be trimmed. 
  187. kModeSafe                        EQU        1                    ; This mode does not need confirmation 
  188. kModeDefault                    EQU        2                    ; This is the default mode for this type of connection 
  189. kModeShowNow                    EQU        3                    ; This mode should always be shown (even though it may require a confirm) 
  190. kModeNotResize                    EQU        4                    ; This mode should not be used to resize the display (eg. mode selects a different connector on card) 
  191. kModeRequiresPan                EQU        5                    ; This mode has more pixels than are actually displayed 
  192. kModeInterlaced                    EQU        6                    ; This mode is interlaced (single pixel lines look bad). 
  193. kModeShowNever                    EQU        7                    ; This mode should not be shown in the user interface. 
  194. kModeSimulscan                    EQU        8                    ; Indicates that more than one display connection can be driven from a single framebuffer controller. 
  195. kModeNotPreset                    EQU        9                    ; Indicates that the timing is not a factory preset for the current display (geometry may need correction) 
  196. kModeBuiltIn                    EQU        10                    ; Indicates that the display mode is for the built-in connect only (on multiconnect devices like the PB 3400) Only the driver is quieried 
  197.  
  198. ;  csDepthFlags in VDVideoParametersInfoRec 
  199. kDepthDependent                    EQU        0                    ; Says that this depth mode may cause dependent changes in other framebuffers (and . 
  200.  
  201. ; csResolutionFlags bit flags for VDResolutionInfoRec 
  202. kResolutionHasMultipleDepthSizes EQU        0                    ; Says that this mode has different csHorizontalPixels, csVerticalLines at different depths (usually slightly larger at lower depths) 
  203.  
  204. ;    Power Mode constants for VDPowerStateRec.powerState.    
  205. kAVPowerOff                        EQU        0
  206. kAVPowerStandby                    EQU        1
  207. kAVPowerSuspend                    EQU        2
  208. kAVPowerOn                        EQU        3
  209.  
  210. ;    Power Mode masks and bits for VDPowerStateRec.powerFlags.    
  211. kPowerStateNeedsRefresh            EQU        0
  212. kPowerStateNeedsRefreshMask        EQU        (1 << 0)
  213.  
  214. ; Control Codes 
  215. cscReset                        EQU        0
  216. cscKillIO                        EQU        1
  217. cscSetMode                        EQU        2
  218. cscSetEntries                    EQU        3
  219. cscSetGamma                        EQU        4
  220. cscGrayPage                        EQU        5
  221. cscGrayScreen                    EQU        5
  222. cscSetGray                        EQU        6
  223. cscSetInterrupt                    EQU        7
  224. cscDirectSetEntries                EQU        8
  225. cscSetDefaultMode                EQU        9
  226. cscSwitchMode                    EQU        10
  227. cscSetSync                        EQU        11
  228. cscSavePreferredConfiguration    EQU        16
  229. cscSetHardwareCursor            EQU        22
  230. cscDrawHardwareCursor            EQU        23
  231. cscSetConvolution                EQU        24
  232. cscSetPowerState                EQU        25
  233. cscPrivateControlCall            EQU        26                    ; Takes a VDPrivateSelectorDataRec
  234. cscSetMultiConnect                EQU        28                    ; From a GDI point of view, this call should be implemented completely in the HAL and not at all in the core.
  235. cscSetClutBehavior                EQU        29                    ; Takes a VDClutBehavior 
  236. cscUnusedCall                    EQU        127                    ; This call used to expend the scrn resource.  Its imbedded data contains more control info 
  237.  
  238. ; Status Codes 
  239. cscGetMode                        EQU        2
  240. cscGetEntries                    EQU        3
  241. cscGetPageCnt                    EQU        4
  242. cscGetPages                        EQU        4                    ; This is what C&D 2 calls it. 
  243. cscGetPageBase                    EQU        5
  244. cscGetBaseAddr                    EQU        5                    ; This is what C&D 2 calls it. 
  245. cscGetGray                        EQU        6
  246. cscGetInterrupt                    EQU        7
  247. cscGetGamma                        EQU        8
  248. cscGetDefaultMode                EQU        9
  249. cscGetCurMode                    EQU        10
  250. cscGetSync                        EQU        11
  251. cscGetConnection                EQU        12                    ; Return information about the connection to the display 
  252. cscGetModeTiming                EQU        13                    ; Return timing info for a mode 
  253. cscGetModeBaseAddress            EQU        14                    ; Return base address information about a particular mode 
  254. cscGetScanProc                    EQU        15                    ; QuickTime scan chasing routine 
  255. cscGetPreferredConfiguration    EQU        16
  256. cscGetNextResolution            EQU        17
  257. cscGetVideoParameters            EQU        18
  258. cscGetGammaInfoList                EQU        20
  259. cscRetrieveGammaTable            EQU        21
  260. cscSupportsHardwareCursor        EQU        22
  261. cscGetHardwareCursorDrawState    EQU        23
  262. cscGetConvolution                EQU        24
  263. cscGetPowerState                EQU        25
  264. cscPrivateStatusCall            EQU        26                    ; Takes a VDPrivateSelectorDataRec
  265. cscGetDDCBlock                    EQU        27                    ; Takes a VDDDCBlockRec  
  266. cscGetMultiConnect                EQU        28                    ; From a GDI point of view, this call should be implemented completely in the HAL and not at all in the core.
  267. cscGetClutBehavior                EQU        29                    ; Takes a VDClutBehavior 
  268.  
  269. ; Bit definitions for the Get/Set Sync call
  270. kDisableHorizontalSyncBit        EQU        0
  271. kDisableVerticalSyncBit            EQU        1
  272. kDisableCompositeSyncBit        EQU        2
  273. kEnableSyncOnBlue                EQU        3
  274. kEnableSyncOnGreen                EQU        4
  275. kEnableSyncOnRed                EQU        5
  276. kNoSeparateSyncControlBit        EQU        6
  277. kTriStateSyncBit                EQU        7
  278. kHorizontalSyncMask                EQU        $01
  279. kVerticalSyncMask                EQU        $02
  280. kCompositeSyncMask                EQU        $04
  281. kDPMSSyncMask                    EQU        $07
  282. kTriStateSyncMask                EQU        $80
  283. kSyncOnBlueMask                    EQU        $08
  284. kSyncOnGreenMask                EQU        $10
  285. kSyncOnRedMask                    EQU        $20
  286. kSyncOnMask                        EQU        $38
  287.  
  288. ;    Power Mode constants for translating DPMS modes to Get/SetSync calls.    
  289. kDPMSSyncOn                        EQU        0
  290. kDPMSSyncStandby                EQU        1
  291. kDPMSSyncSuspend                EQU        2
  292. kDPMSSyncOff                    EQU        7
  293.  
  294. kConvolved                        EQU        0
  295. kLiveVideoPassThru                EQU        1
  296. kConvolvedMask                    EQU        $01
  297. kLiveVideoPassThruMask            EQU        $02
  298.  
  299. VPBlock                 RECORD    0
  300. vpBaseOffset             ds.l   1        ; offset: $0 (0)        ;Offset to page zero of video RAM (From minorBaseOS).
  301. vpRowBytes                 ds.w   1        ; offset: $4 (4)        ;Width of each row of video memory.
  302. vpBounds                 ds     Rect    ; offset: $6 (6)        ;BoundsRect for the video display (gives dimensions).
  303. vpVersion                 ds.w   1        ; offset: $E (14)        ;PixelMap version number.
  304. vpPackType                 ds.w   1        ; offset: $10 (16)
  305. vpPackSize                 ds.l   1        ; offset: $12 (18)
  306. vpHRes                     ds.l   1        ; offset: $16 (22)        ;Horizontal resolution of the device (pixels per inch).
  307. vpVRes                     ds.l   1        ; offset: $1A (26)        ;Vertical resolution of the device (pixels per inch).
  308. vpPixelType                 ds.w   1        ; offset: $1E (30)        ;Defines the pixel type.
  309. vpPixelSize                 ds.w   1        ; offset: $20 (32)        ;Number of bits in pixel.
  310. vpCmpCount                 ds.w   1        ; offset: $22 (34)        ;Number of components in pixel.
  311. vpCmpSize                 ds.w   1        ; offset: $24 (36)        ;Number of bits per component
  312. vpPlaneBytes             ds.l   1        ; offset: $26 (38)        ;Offset from one plane to the next.
  313. sizeof                     EQU *            ; size:   $2A (42)
  314.                         ENDR
  315.  
  316. ; typedef struct VPBlock     VPBlock
  317. ; typedef VPBlock             *VPBlockPtr
  318. VDEntryRecord             RECORD    0
  319. csTable                     ds.l   1        ; offset: $0 (0)        ;(long) pointer to color table entry=value, r,g,b:INTEGER
  320. sizeof                     EQU *            ; size:   $4 (4)
  321.                         ENDR
  322.  
  323. ; typedef struct VDEntryRecord  VDEntryRecord
  324. ; typedef VDEntryRecord     *VDEntRecPtr
  325. ; Parm block for SetGray control call 
  326. VDGrayRecord             RECORD    0
  327. csMode                     ds.b   1        ; offset: $0 (0)        ;Same as GDDevType value (0=color, 1=mono)
  328. filler                     ds.b   1        ; offset: $1 (1)
  329. sizeof                     EQU *            ; size:   $2 (2)
  330.                         ENDR
  331.  
  332. ; typedef struct VDGrayRecord  VDGrayRecord
  333. ; typedef VDGrayRecord         *VDGrayPtr
  334. ; Parm block for SetInterrupt call 
  335. VDFlagRecord             RECORD    0
  336. csMode                     ds.b   1        ; offset: $0 (0)
  337. filler                     ds.b   1        ; offset: $1 (1)
  338. sizeof                     EQU *            ; size:   $2 (2)
  339.                         ENDR
  340.  
  341. ; typedef struct VDFlagRecord  VDFlagRecord
  342. ; typedef VDFlagRecord         *VDFlagRecPtr
  343. ; Parm block for SetEntries control call 
  344. VDSetEntryRecord         RECORD    0
  345. csTable                     ds.l   1        ; offset: $0 (0)        ;Pointer to an array of color specs
  346. csStart                     ds.w   1        ; offset: $4 (4)        ;Which spec in array to start with, or -1
  347. csCount                     ds.w   1        ; offset: $6 (6)        ;Number of color spec entries to set
  348. sizeof                     EQU *            ; size:   $8 (8)
  349.                         ENDR
  350.  
  351. ; typedef struct VDSetEntryRecord  VDSetEntryRecord
  352. ; typedef VDSetEntryRecord     *VDSetEntryPtr
  353. ; Parm block for SetGamma control call 
  354. VDGammaRecord             RECORD    0
  355. csGTable                 ds.l   1        ; offset: $0 (0)        ;pointer to gamma table
  356. sizeof                     EQU *            ; size:   $4 (4)
  357.                         ENDR
  358.  
  359. ; typedef struct VDGammaRecord  VDGammaRecord
  360. ; typedef VDGammaRecord     *VDGamRecPtr
  361. VDBaseAddressInfoRec     RECORD    0
  362. csDevData                 ds.l   1        ; offset: $0 (0)        ; LONGINT - (long) timing mode 
  363. csDevBase                 ds.l   1        ; offset: $4 (4)        ; LONGINT - (long) base address of the mode 
  364. csModeReserved             ds.w   1        ; offset: $8 (8)        ; INTEGER - (short) will some day be the depth 
  365. csModeBase                 ds.l   1        ; offset: $A (10)        ; LONGINT - (long) reserved 
  366. sizeof                     EQU *            ; size:   $E (14)
  367.                         ENDR
  368.  
  369. ; typedef struct VDBaseAddressInfoRec  VDBaseAddressInfoRec, *VDBaseAddressInfoPtr
  370. VDSwitchInfoRec         RECORD    0
  371. csMode                     ds.w   1        ; offset: $0 (0)        ;(word) mode depth
  372. csData                     ds.l   1        ; offset: $2 (2)        ;(long) functional sResource of mode
  373. csPage                     ds.w   1        ; offset: $6 (6)        ;(word) page to switch in
  374. csBaseAddr                 ds.l   1        ; offset: $8 (8)        ;(long) base address of page (return value)
  375. csReserved                 ds.l   1        ; offset: $C (12)        ;(long) Reserved (set to 0) 
  376. sizeof                     EQU *            ; size:   $10 (16)
  377.                         ENDR
  378.  
  379. ; typedef struct VDSwitchInfoRec  VDSwitchInfoRec
  380. ; typedef VDSwitchInfoRec     *VDSwitchInfoPtr
  381. VDTimingInfoRec         RECORD    0
  382. csTimingMode             ds.l   1        ; offset: $0 (0)        ; LONGINT - (long) timing mode (a la InitGDevice) 
  383. csTimingReserved         ds.l   1        ; offset: $4 (4)        ; LONGINT - (long) reserved 
  384. csTimingFormat             ds.l   1        ; offset: $8 (8)        ; LONGINT - (long) what format is the timing info 
  385. csTimingData             ds.l   1        ; offset: $C (12)        ; LONGINT - (long) data supplied by driver 
  386. csTimingFlags             ds.l   1        ; offset: $10 (16)        ; LONGINT - (long) mode within device 
  387. sizeof                     EQU *            ; size:   $14 (20)
  388.                         ENDR
  389.  
  390. ; typedef struct VDTimingInfoRec  VDTimingInfoRec
  391. ; typedef VDTimingInfoRec     *VDTimingInfoPtr
  392. VDDisplayConnectInfoRec RECORD    0
  393. csDisplayType             ds.w   1        ; offset: $0 (0)        ; INTEGER - (word) Type of display connected 
  394. csConnectTaggedType         ds.b   1        ; offset: $2 (2)        ; BYTE - type of tagging 
  395. csConnectTaggedData         ds.b   1        ; offset: $3 (3)        ; BYTE - tagging data 
  396. csConnectFlags             ds.l   1        ; offset: $4 (4)        ; LONGINT - (long) tell us about the connection 
  397. csDisplayComponent         ds.l   1        ; offset: $8 (8)        ; LONGINT - (long) if the card has a direct connection to the display, it returns the display component here (FUTURE) 
  398. csConnectReserved         ds.l   1        ; offset: $C (12)        ; LONGINT - (long) reserved 
  399. sizeof                     EQU *            ; size:   $10 (16)
  400.                         ENDR
  401.  
  402. ; typedef struct VDDisplayConnectInfoRec  VDDisplayConnectInfoRec
  403. ; typedef VDDisplayConnectInfoRec  *VDDisplayConnectInfoPtr
  404. ; RawSenseCode
  405. ;    This abstract data type is not exactly abstract.  Rather, it is merely enumerated constants
  406. ;    for the possible raw sense code values when 'standard' sense code hardware is implemented.
  407. ;
  408. ;    For 'standard' sense code hardware, the raw sense is obtained as follows:
  409. ;        • Instruct the frame buffer controller NOT to actively drive any of the monitor sense lines
  410. ;        • Read the state of the monitor sense lines 2, 1, and 0.  (2 is the MSB, 0 the LSB)
  411. ;
  412. ;    IMPORTANT Note: 
  413. ;    When the 'kTaggingInfoNonStandard' bit of 'csConnectFlags' is FALSE, then these constants 
  414. ;    are valid 'csConnectTaggedType' values in 'VDDisplayConnectInfo' 
  415. ;
  416. ;
  417. ; typedef unsigned char     RawSenseCode
  418.  
  419. kRSCZero                        EQU        0
  420. kRSCOne                            EQU        1
  421. kRSCTwo                            EQU        2
  422. kRSCThree                        EQU        3
  423. kRSCFour                        EQU        4
  424. kRSCFive                        EQU        5
  425. kRSCSix                            EQU        6
  426. kRSCSeven                        EQU        7
  427.  
  428. ; ExtendedSenseCode
  429. ;    This abstract data type is not exactly abstract.  Rather, it is merely enumerated constants
  430. ;    for the values which are possible when the extended sense algorithm is applied to hardware
  431. ;    which implements 'standard' sense code hardware.
  432. ;
  433. ;     For 'standard' sense code hardware, the extended sense code algorithm is as follows:
  434. ;    (Note:  as described here, sense line 'A' corresponds to '2', 'B' to '1', and 'C' to '0')
  435. ;        • Drive sense line 'A' low and read the values of 'B' and 'C'.  
  436. ;        • Drive sense line 'B' low and read the values of 'A' and 'C'.
  437. ;        • Drive sense line 'C' low and read the values of 'A' and 'B'.
  438. ;
  439. ;    In this way, a six-bit number of the form BC/AC/AB is generated. 
  440. ;
  441. ;    IMPORTANT Note: 
  442. ;    When the 'kTaggingInfoNonStandard' bit of 'csConnectFlags' is FALSE, then these constants 
  443. ;    are valid 'csConnectTaggedData' values in 'VDDisplayConnectInfo' 
  444. ;
  445. ;
  446. ; typedef unsigned char     ExtendedSenseCode
  447.  
  448. kESCZero21Inch                    EQU        $00                    ; 21" RGB                                 
  449. kESCOnePortraitMono                EQU        $14                    ; Portrait Monochrome                     
  450. kESCTwo12Inch                    EQU        $21                    ; 12" RGB                                
  451. kESCThree21InchRadius            EQU        $31                    ; 21" RGB (Radius)                        
  452. kESCThree21InchMonoRadius        EQU        $34                    ; 21" Monochrome (Radius)                 
  453. kESCThree21InchMono                EQU        $35                    ; 21" Monochrome                        
  454. kESCFourNTSC                    EQU        $0A                    ; NTSC                                 
  455. kESCFivePortrait                EQU        $1E                    ; Portrait RGB                         
  456. kESCSixMSB1                        EQU        $03                    ; MultiScan Band-1 (12" thru 1Six")    
  457. kESCSixMSB2                        EQU        $0B                    ; MultiScan Band-2 (13" thru 19")        
  458. kESCSixMSB3                        EQU        $23                    ; MultiScan Band-3 (13" thru 21")        
  459. kESCSixStandard                    EQU        $2B                    ; 13"/14" RGB or 12" Monochrome        
  460. kESCSevenPAL                    EQU        $00                    ; PAL                                    
  461. kESCSevenNTSC                    EQU        $14                    ; NTSC                                 
  462. kESCSevenVGA                    EQU        $17                    ; VGA                                     
  463. kESCSeven16Inch                    EQU        $2D                    ; 16" RGB (GoldFish)                      
  464. kESCSevenPALAlternate            EQU        $30                    ; PAL (Alternate)                         
  465. kESCSeven19Inch                    EQU        $3A                    ; Third-Party 19”                        
  466. kESCSevenNoDisplay                EQU        $3F                    ; No display connected                 
  467.  
  468. ; DepthMode
  469. ;    This abstract data type is used to to reference RELATIVE pixel depths.
  470. ;    Its definition is largely derived from its past usage, analogous to 'xxxVidMode'
  471. ;
  472. ;    Bits per pixel DOES NOT directly map to 'DepthMode'  For example, on some
  473. ;    graphics hardware, 'kDepthMode1' may represent 1 BPP, whereas on other
  474. ;    hardware, 'kDepthMode1' may represent 8BPP.
  475. ;
  476. ;    DepthMode IS considered to be ordinal, i.e., operations such as <, >, ==, etc.
  477. ;    behave as expected.  The values of the constants which comprise the set are such
  478. ;    that 'kDepthMode4 < kDepthMode6' behaves as expected.
  479. ;
  480. ; typedef unsigned short     DepthMode
  481.  
  482. kDepthMode1                        EQU        128
  483. kDepthMode2                        EQU        129
  484. kDepthMode3                        EQU        130
  485. kDepthMode4                        EQU        131
  486. kDepthMode5                        EQU        132
  487. kDepthMode6                        EQU        133
  488.  
  489. kFirstDepthMode                    EQU        128                    ; These constants are obsolete, and just included    
  490. kSecondDepthMode                EQU        129                    ; for clients that have converted to the above        
  491. kThirdDepthMode                    EQU        130                    ; kDepthModeXXX constants.                            
  492. kFourthDepthMode                EQU        131
  493. kFifthDepthMode                    EQU        132
  494. kSixthDepthMode                    EQU        133
  495.  
  496. VDPageInfo                 RECORD    0
  497. csMode                     ds.w   1        ; offset: $0 (0)        ;(word) mode within device
  498. csData                     ds.l   1        ; offset: $2 (2)        ;(long) data supplied by driver
  499. csPage                     ds.w   1        ; offset: $6 (6)        ;(word) page to switch in
  500. csBaseAddr                 ds.l   1        ; offset: $8 (8)        ;(long) base address of page
  501. sizeof                     EQU *            ; size:   $C (12)
  502.                         ENDR
  503.  
  504. ; typedef struct VDPageInfo  VDPageInfo
  505. ; typedef VDPageInfo         *VDPgInfoPtr
  506. VDSizeInfo                 RECORD    0
  507. csHSize                     ds.w   1        ; offset: $0 (0)        ;(word) desired/returned h size
  508. csHPos                     ds.w   1        ; offset: $2 (2)        ;(word) desired/returned h position
  509. csVSize                     ds.w   1        ; offset: $4 (4)        ;(word) desired/returned v size
  510. csVPos                     ds.w   1        ; offset: $6 (6)        ;(word) desired/returned v position
  511. sizeof                     EQU *            ; size:   $8 (8)
  512.                         ENDR
  513.  
  514. ; typedef struct VDSizeInfo  VDSizeInfo
  515. ; typedef VDSizeInfo         *VDSzInfoPtr
  516. VDSettings                 RECORD    0
  517. csParamCnt                 ds.w   1        ; offset: $0 (0)        ;(word) number of params
  518. csBrightMax                 ds.w   1        ; offset: $2 (2)        ;(word) max brightness
  519. csBrightDef                 ds.w   1        ; offset: $4 (4)        ;(word) default brightness
  520. csBrightVal                 ds.w   1        ; offset: $6 (6)        ;(word) current brightness
  521. csCntrstMax                 ds.w   1        ; offset: $8 (8)        ;(word) max contrast
  522. csCntrstDef                 ds.w   1        ; offset: $A (10)        ;(word) default contrast
  523. csCntrstVal                 ds.w   1        ; offset: $C (12)        ;(word) current contrast
  524. csTintMax                 ds.w   1        ; offset: $E (14)        ;(word) max tint
  525. csTintDef                 ds.w   1        ; offset: $10 (16)        ;(word) default tint
  526. csTintVal                 ds.w   1        ; offset: $12 (18)        ;(word) current tint
  527. csHueMax                 ds.w   1        ; offset: $14 (20)        ;(word) max hue
  528. csHueDef                 ds.w   1        ; offset: $16 (22)        ;(word) default hue
  529. csHueVal                 ds.w   1        ; offset: $18 (24)        ;(word) current hue
  530. csHorizDef                 ds.w   1        ; offset: $1A (26)        ;(word) default horizontal
  531. csHorizVal                 ds.w   1        ; offset: $1C (28)        ;(word) current horizontal
  532. csHorizMax                 ds.w   1        ; offset: $1E (30)        ;(word) max horizontal
  533. csVertDef                 ds.w   1        ; offset: $20 (32)        ;(word) default vertical
  534. csVertVal                 ds.w   1        ; offset: $22 (34)        ;(word) current vertical
  535. csVertMax                 ds.w   1        ; offset: $24 (36)        ;(word) max vertical
  536. sizeof                     EQU *            ; size:   $26 (38)
  537.                         ENDR
  538.  
  539. ; typedef struct VDSettings  VDSettings
  540. ; typedef VDSettings         *VDSettingsPtr
  541. VDDefMode                 RECORD    0
  542. csID                     ds.b   1        ; offset: $0 (0)
  543. filler                     ds.b   1        ; offset: $1 (1)
  544. sizeof                     EQU *            ; size:   $2 (2)
  545.                         ENDR
  546.  
  547. ; typedef struct VDDefMode     VDDefMode
  548. ; typedef VDDefMode         *VDDefModePtr
  549. VDSyncInfoRec             RECORD    0
  550. csMode                     ds.b   1        ; offset: $0 (0)
  551. csFlags                     ds.b   1        ; offset: $1 (1)
  552. sizeof                     EQU *            ; size:   $2 (2)
  553.                         ENDR
  554.  
  555. ; typedef struct VDSyncInfoRec  VDSyncInfoRec
  556. ; typedef VDSyncInfoRec     *VDSyncInfoPtr
  557. ; typedef unsigned long     DisplayModeID
  558. ; typedef unsigned long     VideoDeviceType
  559. ; typedef unsigned long     GammaTableID
  560. ; Constants for the GetNextResolution call 
  561.  
  562. kDisplayModeIDCurrent            EQU        $0                    ; Reference the Current DisplayModeID 
  563. kDisplayModeIDInvalid            EQU        $ffffffff            ; A bogus DisplayModeID in all cases 
  564. kDisplayModeIDFindFirstResolution EQU        $fffffffe            ; Used in cscGetNextResolution to reset iterator 
  565. kDisplayModeIDNoMoreResolutions    EQU        $fffffffd            ; Used in cscGetNextResolution to indicate End Of List 
  566.  
  567. ; Constants for the GetGammaInfoList call 
  568. kGammaTableIDFindFirst            EQU        $fffffffe            ; Get the first gamma table ID 
  569. kGammaTableIDNoMoreTables        EQU        $fffffffd            ; Used to indicate end of list 
  570. kGammaTableIDSpecific            EQU        $0                    ; Return the info for the given table id 
  571.  
  572. ;  Constants for GetMultiConnect call
  573. kGetConnectionCount                EQU        $FFFFFFFF            ; Used to get the number of possible connections in a “multi-headed” framebuffer environment.
  574. kActivateConnection                EQU        $00                    ; Used for activating a connection (csConnectFlags value).
  575. kDeactivateConnection            EQU        $0200                ; Used for deactivating a connection (csConnectFlags value.)
  576.  
  577. VDResolutionInfoRec     RECORD    0
  578. csPreviousDisplayModeID     ds.l   1        ; offset: $0 (0)        ; ID of the previous resolution in a chain 
  579. csDisplayModeID             ds.l   1        ; offset: $4 (4)        ; ID of the next resolution 
  580. csHorizontalPixels         ds.l   1        ; offset: $8 (8)        ; # of pixels in a horizontal line at the max depth 
  581. csVerticalLines             ds.l   1        ; offset: $C (12)        ; # of lines in a screen at the max depth 
  582. csRefreshRate             ds.l   1        ; offset: $10 (16)        ; Vertical Refresh Rate in Hz 
  583. csMaxDepthMode             ds.w   1        ; offset: $14 (20)        ; 0x80-based number representing max bit depth 
  584. csResolutionFlags         ds.l   1        ; offset: $16 (22)        ; Reserved - flag bits 
  585. csReserved                 ds.l   1        ; offset: $1A (26)        ; Reserved 
  586. sizeof                     EQU *            ; size:   $1E (30)
  587.                         ENDR
  588.  
  589. ; typedef struct VDResolutionInfoRec  VDResolutionInfoRec
  590. ; typedef VDResolutionInfoRec  *VDResolutionInfoPtr
  591. VDVideoParametersInfoRec RECORD    0
  592. csDisplayModeID             ds.l   1        ; offset: $0 (0)        ; the ID of the resolution we want info on 
  593. csDepthMode                 ds.w   1        ; offset: $4 (4)        ; The bit depth we want the info on (0x80 based) 
  594. csVPBlockPtr             ds.l   1        ; offset: $6 (6)        ; Pointer to a video parameter block 
  595. csPageCount                 ds.l   1        ; offset: $A (10)        ; Number of pages supported by the resolution 
  596. csDeviceType             ds.l   1        ; offset: $E (14)        ; Device Type:  Direct, Fixed or CLUT; 
  597. csReserved                 ds.l   1        ; offset: $12 (18)        ; Reserved 
  598. sizeof                     EQU *            ; size:   $16 (22)
  599.                         ENDR
  600.  
  601. ; typedef struct VDVideoParametersInfoRec  VDVideoParametersInfoRec
  602. ; typedef VDVideoParametersInfoRec  *VDVideoParametersInfoPtr
  603. VDGammaInfoRec             RECORD    0
  604. csLastGammaID             ds.l   1        ; offset: $0 (0)        ; the ID of the previous gamma table 
  605. csNextGammaID             ds.l   1        ; offset: $4 (4)        ; the ID of the next gamma table 
  606. csGammaPtr                 ds.l   1        ; offset: $8 (8)        ; Ptr to a gamma table data 
  607. csReserved                 ds.l   1        ; offset: $C (12)        ; Reserved 
  608. sizeof                     EQU *            ; size:   $10 (16)
  609.                         ENDR
  610.  
  611. ; typedef struct VDGammaInfoRec  VDGammaInfoRec
  612. ; typedef VDGammaInfoRec     *VDGammaInfoPtr
  613. VDGetGammaListRec         RECORD    0
  614. csPreviousGammaTableID     ds.l   1        ; offset: $0 (0)        ; ID of the previous gamma table 
  615. csGammaTableID             ds.l   1        ; offset: $4 (4)        ; ID of the gamma table following csPreviousDisplayModeID 
  616. csGammaTableSize         ds.l   1        ; offset: $8 (8)        ; Size of the gamma table in bytes 
  617. csGammaTableName         ds.l   1        ; offset: $C (12)        ; Gamma table name (c-string) 
  618. sizeof                     EQU *            ; size:   $10 (16)
  619.                         ENDR
  620.  
  621. ; typedef struct VDGetGammaListRec  VDGetGammaListRec
  622. ; typedef VDGetGammaListRec  *VDGetGammaListPtr
  623. VDRetrieveGammaRec         RECORD    0
  624. csGammaTableID             ds.l   1        ; offset: $0 (0)        ; ID of gamma table to retrieve 
  625. csGammaTablePtr             ds.l   1        ; offset: $4 (4)        ; Location to copy desired gamma to 
  626. sizeof                     EQU *            ; size:   $8 (8)
  627.                         ENDR
  628.  
  629. ; typedef struct VDRetrieveGammaRec  VDRetrieveGammaRec
  630. ; typedef VDRetrieveGammaRec  *VDRetrieveGammaPtr
  631. VDSetHardwareCursorRec     RECORD    0
  632. csCursorRef                 ds.l   1        ; offset: $0 (0)        ; reference to cursor data 
  633. csReserved1                 ds.l   1        ; offset: $4 (4)        ; reserved for future use 
  634. csReserved2                 ds.l   1        ; offset: $8 (8)        ; should be ignored 
  635. sizeof                     EQU *            ; size:   $C (12)
  636.                         ENDR
  637.  
  638. ; typedef struct VDSetHardwareCursorRec  VDSetHardwareCursorRec
  639. ; typedef VDSetHardwareCursorRec  *VDSetHardwareCursorPtr
  640. VDDrawHardwareCursorRec RECORD    0
  641. csCursorX                 ds.l   1        ; offset: $0 (0)        ; x coordinate 
  642. csCursorY                 ds.l   1        ; offset: $4 (4)        ; y coordinate 
  643. csCursorVisible             ds.l   1        ; offset: $8 (8)        ; true if cursor is must be visible 
  644. csReserved1                 ds.l   1        ; offset: $C (12)        ; reserved for future use 
  645. csReserved2                 ds.l   1        ; offset: $10 (16)        ; should be ignored 
  646. sizeof                     EQU *            ; size:   $14 (20)
  647.                         ENDR
  648.  
  649. ; typedef struct VDDrawHardwareCursorRec  VDDrawHardwareCursorRec
  650. ; typedef VDDrawHardwareCursorRec  *VDDrawHardwareCursorPtr
  651. VDSupportsHardwareCursorRec RECORD    0
  652. csSupportsHardwareCursor ds.l   1        ; offset: $0 (0)
  653. ; true if hardware cursor is supported 
  654. csReserved1                 ds.l   1        ; offset: $4 (4)        ; reserved for future use 
  655. csReserved2                 ds.l   1        ; offset: $8 (8)        ; must be zero 
  656. sizeof                     EQU *            ; size:   $C (12)
  657.                         ENDR
  658.  
  659. ; typedef struct VDSupportsHardwareCursorRec  VDSupportsHardwareCursorRec
  660. ; typedef VDSupportsHardwareCursorRec  *VDSupportsHardwareCursorPtr
  661. VDHardwareCursorDrawStateRec RECORD    0
  662. csCursorX                 ds.l   1        ; offset: $0 (0)        ; x coordinate 
  663. csCursorY                 ds.l   1        ; offset: $4 (4)        ; y coordinate 
  664. csCursorVisible             ds.l   1        ; offset: $8 (8)        ; true if cursor is visible 
  665. csCursorSet                 ds.l   1        ; offset: $C (12)        ; true if cursor successfully set by last set control call 
  666. csReserved1                 ds.l   1        ; offset: $10 (16)        ; reserved for future use 
  667. csReserved2                 ds.l   1        ; offset: $14 (20)        ; must be zero 
  668. sizeof                     EQU *            ; size:   $18 (24)
  669.                         ENDR
  670.  
  671. ; typedef struct VDHardwareCursorDrawStateRec  VDHardwareCursorDrawStateRec
  672. ; typedef VDHardwareCursorDrawStateRec  *VDHardwareCursorDrawStatePtr
  673. VDConvolutionInfoRec     RECORD    0
  674. csDisplayModeID             ds.l   1        ; offset: $0 (0)        ; the ID of the resolution we want info on 
  675. csDepthMode                 ds.w   1        ; offset: $4 (4)        ; The bit depth we want the info on (0x80 based) 
  676. csPage                     ds.l   1        ; offset: $6 (6)
  677. csFlags                     ds.l   1        ; offset: $A (10)
  678. csReserved                 ds.l   1        ; offset: $E (14)
  679. sizeof                     EQU *            ; size:   $12 (18)
  680.                         ENDR
  681.  
  682. ; typedef struct VDConvolutionInfoRec  VDConvolutionInfoRec
  683. ; typedef VDConvolutionInfoRec  *VDConvolutionInfoPtr
  684. VDPowerStateRec         RECORD    0
  685. powerState                 ds.l   1        ; offset: $0 (0)
  686. powerFlags                 ds.l   1        ; offset: $4 (4)
  687. powerReserved1             ds.l   1        ; offset: $8 (8)
  688. powerReserved2             ds.l   1        ; offset: $C (12)
  689. sizeof                     EQU *            ; size:   $10 (16)
  690.                         ENDR
  691.  
  692. ; typedef struct VDPowerStateRec  VDPowerStateRec
  693. ; typedef VDPowerStateRec     *VDPowerStatePtr
  694.  
  695.  
  696. ;    Private Data to video drivers.
  697. ;    
  698. ;    In versions of MacOS with multiple address spaces (System 8), the OS 
  699. ;    must know the extent of parameters in order to move them between the caller
  700. ;    and driver.  The old private-selector model for video drivers does not have
  701. ;    this information so:
  702. ;    
  703. ;    For post-7.x Systems private calls should be implemented using the cscPrivateCall
  704. ;
  705.  
  706. VDPrivateSelectorDataRec RECORD 0
  707. privateParameters         ds.l    1                ; offset: $0 (0)        ;  Caller's parameters
  708. privateParametersSize     ds.l    1                ; offset: $4 (4)        ;  Size of data sent from caller to driver
  709. privateResults             ds.l    1                ; offset: $8 (8)        ;  Caller's return area. Can be nil, or same as privateParameters.
  710. privateResultsSize         ds.l    1                ; offset: $C (12)        ;  Size of data driver returns to caller. Can be nil, or same as privateParametersSize.
  711. sizeof                     EQU *                    ; size:   $10 (16)
  712.                         ENDR
  713. VDPrivateSelectorRec    RECORD 0
  714. reserved                 ds.l    1                ; offset: $0 (0)        ;  Reserved (set to 0). 
  715. data                     ds        VDPrivateSelectorDataRec ; offset: $4 (4) <-- really an array of length one
  716. sizeof                     EQU *                    ; size:   $14 (20)
  717.                         ENDR
  718. VDDDCBlockRec            RECORD 0
  719. ddcBlockNumber             ds.l    1                ; offset: $0 (0)        ;  Input -- DDC EDID (Extended Display Identification Data) number (1-based) 
  720. ddcBlockType             ds.l    1                ; offset: $4 (4)        ;  Input -- DDC block type (EDID/VDIF) 
  721. ddcFlags                 ds.l    1                ; offset: $8 (8)        ;  Input -- DDC Flags
  722. ddcReserved                 ds.l    1                ; offset: $C (12)        ;  Reserved 
  723. ddcBlockData             ds.b    128                ; offset: $10 (16)        ;  Output -- DDC EDID/VDIF data (kDDCBlockSize) 
  724. sizeof                     EQU *                    ; size:   $90 (144)
  725.                         ENDR
  726. ; typedef struct VDDDCBlockRec *        VDDDCBlockPtr
  727.  
  728. ; typedef UInt32                         VDClutBehavior
  729.  
  730. ; typedef VDClutBehavior *                VDClutBehaviorPtr
  731.  
  732.  
  733. kSetClutAtSetEntries            EQU        0                    ; SetEntries behavior is to update clut during SetEntries call
  734. kSetClutAtVBL                    EQU        1                    ; SetEntries behavior is to upate clut at next vbl
  735.  
  736.     ENDIF ; __VIDEO__
  737.